<template>
    <ui-main title="富文本">
        <div class="item one">
            <ui-editor v-model="content" ></ui-editor>
        </div>
        <div class="item three">
            <ui-load-md no-bar file="editor.md"></ui-load-md>
        </div>
    </ui-main>
</template>
<script>


    export default {
        data() {
            return {
                content: '<h1>Some initial content</h1>',
                toolbar: [
                    ['bold', 'italic', 'underline']
                ],
            }
        },
        methods: {},
        watch: {
            content: {
                handler(val) {
                    // console.clear()
                    // console.log('编辑器输出文本：', val)
                },
                // immediate: true,
                // deep: true
            }
        },
        mounted() {

        }

    }
</script>
